package com.mejlisse.server.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.AssertFalse;

@Entity
@RooJavaBean
@RooToString
@RooEntity
public class Comment {

    @Size(min = 3, max = 15)
    private String author;

    @NotNull
    private String commentText;

    private String email;

    @AssertFalse
    private Boolean moderated;
}
